

#ifndef IQW_GUI_STRING_H__
#define IQW_GUI_STRING_H__


#include <stdint.h> 

//#include "iqw_gui_widget.h" 
#include "ui_widgets_defs.h" 
//#include "iqw_ui_widget_types.h"
#include "ui_widget_types.h"

//typedef enum{
//    FONT_TEXT_ALIGN_DEFAULT = 0,
//    FONT_TEXT_ALIGN_LEFT = FONT_TEXT_ALIGN_DEFAULT,
//    FONT_TEXT_ALIGN_RIGHT,
//    FONT_TEXT_ALIGN_CENTER,
//}iqw_ui_font_text_align_t;


//#define FLAG_ALIGN_MASK         0x0F
//#define FLAG_ALIGN_LEFT          0x00
//#define FLAG_ALIGN_RIGHT         0x01
//#define FLAG_ALIGN_CENTER        0x02 

//#define FLAG_FILL_MASK          0x10
//#define FLAG_FILL_NONE          0x00
//#define FLAG_FILL_AREA          0x10

//#define FLAG_WIDTH_MASK         0x20 
//#define FLAG_WIDTH_EQUAL        0x00
//#define FLAG_WIDTH_UNEQAUL      0x20 


//typedef struct{
//    int16_t x;
//    int16_t y;
//    int16_t xend;
//    int16_t yend;
//    uint16_t unequal; 
//    uint16_t offset; // next line offset 
//    uint16_t width;
//    uint16_t height;
//        
//    uint16_t color; 
//    uint16_t maskcolor;
//    
//    uint8_t* dot; // matrix 
//}iqw_ui_font_matrix_t; 


//void gui_string_textalign( ui_widgets_type_t * widget, int16_t w, int16_t h, int16_t *x, int16_t *y );

int  iqw_gui_string_evaluate_height( const ui_widgets_type_t * widget );// const iqw_ui_widget_text_t * text); 

int iqw_gui_string_show( const ui_widgets_type_t * widget, int16_t nx, int16_t ny,  widget_paint_opt_t *opt);



#endif 



